package customrrors

import "fmt"

type UserNotFoundError struct {
	Username string
}
type UserPasswordError struct {
	Username string
}

func (e *UserNotFoundError) Error() string {
	return fmt.Sprintf("user %s not found", e.Username)
}
func (e *UserPasswordError) Error() string {
	return fmt.Sprintf("user %s's password error", e.Username)
}

func (e *UserNotFoundError) Unwrap() error {
	return nil
}
